import request from '@/utils/request'

// 查询备料信息列表
export function listStockmessage(query) {
  return request({
    url: '/zndd/stockmessage/list',
    method: 'get',
    params: query
  })
}

// 查询备料信息详细
export function getStockmessage(id) {
  return request({
    url: '/zndd/stockmessage/' + id,
    method: 'get'
  })
}

// 新增备料信息
export function addStockmessage(data) {
  return request({
    url: '/zndd/stockmessage',
    method: 'post',
    data: data
  })
}

// 修改备料信息
export function updateStockmessage(data) {
  return request({
    url: '/zndd/stockmessage',
    method: 'put',
    data: data
  })
}

// 删除备料信息
export function delStockmessage(id) {
  return request({
    url: '/zndd/stockmessage/' + id,
    method: 'delete'
  })
}
